﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Wy.JiZhangSoft.Migrations
{
    public partial class update_ZhangDan : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Url",
                table: "JiZhang_ZhangDans");

            migrationBuilder.AddColumn<Guid>(
                name: "FileId",
                table: "JiZhang_ZhangDans",
                type: "char(150)",
                maxLength: 150,
                nullable: false,
                defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "FileId",
                table: "JiZhang_ZhangDans");

            migrationBuilder.AddColumn<string>(
                name: "Url",
                table: "JiZhang_ZhangDans",
                type: "varchar(150) CHARACTER SET utf8mb4",
                maxLength: 150,
                nullable: true);
        }
    }
}
